﻿using System;
using System.Collections.Generic;
using System.Text;

using MySql.Data.MySqlClient;

namespace Utility
{
    public class MySqlParameterList : DbParameterList<MySqlParameter>
    {
        public MySqlParameter Add(string parameterName, MySqlDbType dbType)
        {
            return Add(new MySqlParameter(parameterName, dbType));
        }

        public MySqlParameter Add(string parameterName, MySqlDbType dbType, int size)
        {
            return Add(new MySqlParameter(parameterName, dbType, size));
        }

        public MySqlParameter Add(string parameterName, MySqlDbType dbType, int size, string sourceColumn)
        {
            return Add(new MySqlParameter(parameterName, dbType, size, sourceColumn));
        }

        public MySqlParameter AddWithValue(string parameterName, object value, MySqlDbType dbType)
        {
            return Add(new MySqlParameter(parameterName, dbType) { Value = value });
        }
    }

}
